<template>
  <div id="main">
    <BaseNavHead></BaseNavHead>
    <router-view v-slot="{ Component }">
      <transition name="fade">
        <keep-alive :include="['HomePage']">
          <component :is="Component" />
        </keep-alive>
      </transition>
    </router-view>
  </div>
</template>

<script>
import BaseNavHead from "@/components/homePageHead/BaseNavHead.vue";

export default {
  name: "BaseMainBox",
  components: { BaseNavHead },
};
</script>

<style scoped>
#main {
  position: absolute;
  top: 0;
  left: 0;
  overflow-y: scroll;
  width: 100%;
  height: 100%;
}
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.5s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}
</style>
